package com.mini.service.impl;

import com.mini.dao.ServerComputerMapMapper;
import com.mini.pojo.basic.ServerComputerMap;
import com.mini.service.ServerComputerMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServerComputerMapServiceImpl implements ServerComputerMapService {

    @Autowired
    private ServerComputerMapMapper serverComputerMapMapper;

    public void addServerComputerMap(ServerComputerMap serverComputerMap) {

        serverComputerMapMapper.addServerComputerMap(serverComputerMap);

    }

    public void updateServerComputerMap(ServerComputerMap serverComputerMap) {
        serverComputerMapMapper.updateServerComputerMap(serverComputerMap);

    }

    public int removeServerComputerMap(int servercomputermapId) {
        return serverComputerMapMapper.removeServerComputerMap(servercomputermapId);
    }

    public List<ServerComputerMap> queryAllServerComputerMap() {
        return serverComputerMapMapper.queryAllServerComputerMap();
    }

    public List<ServerComputerMap> queryServerServerComputerMap(int serverinfoId) {
        return serverComputerMapMapper.queryServerServerComputerMap(serverinfoId);
    }

    public List<ServerComputerMap> queryComputerServerComputerMap(int servercomputerinfoId) {
        return serverComputerMapMapper.queryComputerServerComputerMap(servercomputerinfoId);
    }
}
